package groupe;

import java.util.List;

public class CayleyTable {

    private final Z6ZxZ3Z[][] Tab;

    public CayleyTable() {
//        new Z6ZxZ3Z();
        Tab = new Z6ZxZ3Z[ 18 ][ 18 ];
        List<Z6ZxZ3Z> elts = Z6ZxZ3Z.elements;
        for (int i = 0 ; i < 18 ; i++) {
            for (int j = 0 ; j < 18 ; j++) {
                Tab[i][j] = elts.get(i).lci(elts.get(j));
            }
        }
    }

    @Override
    public String toString() {
        super.toString();
        String ret = "";
        for (int i = 0 ; i < 18 ; i++) {
            for (int j = 0 ; j < 18 ; j++) {
                ret += Tab[i][j] + ",";
            }
            ret += "\n";
        }

        return ret;
    }
}
